package com.qf.shop.order.feign.api;

import com.qf.shop.common.vo.StockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "shop-goods",path = "/stock")
public interface  StockService {

    @RequestMapping("/lockStock")
    public Boolean lockStock(List<StockVo> stockVoList);

    @RequestMapping("/unLockStock")
    public Boolean unLockStock(List<StockVo> stockVoList);
}
